hysop.operator.base.curl module¶
- class hysop.operator.base.curl.CurlOperatorBase(Fin, Fout, variables, **kwds)[source]¶
Bases:
SpectralOperatorBase
Compute the curl using a specific implementation.
Create an operator that computes the curl of an input field Fin.
Given Fin, a 2D ScalarField, a 2D VectorField or a 3D VectorField, compute Fout = curl(Fin).
- Only the following configurations are supported:
dim nb_components | dim nb_components
Input: 2 (1,2) | 3 3 Output: 2 (2,1) | 3 3
- Parameters:
Fin (hysop.field.continuous_field.Field) – Continuous field as input ScalarField or VectorField. All contained field have to live on the same domain.
Fout (hysop.field.continuous_field.Field) – Continuous field as output VectorField. All contained field have to live on the same domain.
variables (dict) – dictionary of fields as keys and topologies as values.
kwds (dict, optional) – Extra parameters passed towards base class (MultiSpaceDerivatives).
- class hysop.operator.base.curl.SpectralCurlOperatorBase(**kwds)[source]¶
Bases:
CurlOperatorBase
Compute the curl using a specific spectral implementation.
Create an operator that computes the curl of an input field Fin.
Given Fin, a 2D ScalarField, a 2D VectorField or a 3D VectorField, compute Fout = curl(Fin).
- Only the following configurations are supported:
dim nb_components | dim nb_components
Input: 2 (1,2) | 3 3 Output: 2 (2,1) | 3 3
- Parameters:
Fin (hysop.field.continuous_field.Field) – Continuous field as input ScalarField or VectorField. All contained field have to live on the same domain.
Fout (hysop.field.continuous_field.Field) – Continuous field as output VectorField. All contained field have to live on the same domain.
variables (dict) – dictionary of fields as keys and topologies as values.
kwds (dict, optional) – Extra parameters passed towards base class (MultiSpaceDerivatives).